package com.yipao.db.service.operate;

import com.yipao.db.dao.operate.YipaoGoodsBindingMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;

/**
 * 李可 5.13
 */
@Service
public class YipaoGoodsBindingService {

    @Resource
    private YipaoGoodsBindingMapper yipaoGoodsBindingMapper;


    /**
     * 商品设备绑定
     * @param devId 设备id
     * @param goodsId 商品id
     */
    public void binding(String devId,Integer goodsId){
        yipaoGoodsBindingMapper.binding(devId,goodsId, LocalDateTime.now());
    }


}
